package designpattern.adapter.object;

/**
 * TODO:类描述
 *
 * @className: Client
 * @packageName: designpattern.adapter.object
 * @author: Zhuhj
 * @version: V1.0
 * @date: 2021/4/19 21:49
 */
public class Client {
    public static void main(String[] args) {
        ITarget target = new DeerAdapter();
        target.fly();
        target.run();

        Deer deer =new Deer();
        ITarget target1 = new DeerApater2(deer);
        target1.fly();
        target1.run();
    }
}
